import Layout from "@/layout";

const doctorManageRouter = {
  path: "/doctor",
  component: Layout,
  redirect: "/doctor/index",
  name: "doctor",
  meta: {
    title: "医生管理",
    icon: "clipboard",
  },
  children: [
    {
      path: "doctorIndex",
      component: () => import("@/views/doctor/doctor/doctorIndex"),
      name: "doctorIndex",
      meta: { title: "医生管理", icon: "" },
    },
    {
      path: "doctorManage",
      component: () => import("@/views/doctor/patient/patientIndex"),
      name: "doctorManage",
      meta: { title: "患者管理", icon: "" },
    },
    {
      path: "orderIndex",
      component: () => import("@/views/doctor/order/orderIndex"),
      name: "orderIndex",
      meta: { title: "订单管理", icon: "" },
    },
    {
      path: "myMsgIndex",
      component: () => import("@/views/doctor/myMsg/myMsgIndex"),
      name: "myMsgIndex",
      meta: { title: "我的信息", icon: "" },
    },
    {
      path: "studyIndex",
      component: () => import("@/views/doctor/study/studyIndex"),
      name: "studyIndex",
      meta: { title: "学习空间", icon: "" },
    },
    {
      path: "order",
      component: (resolve) => require(["@/views/doctor/patient/com/order"], resolve),
      name: "order",
      meta: { title: "下单", activeMenu: "/doctor/doctorManage" },
      hidden: true,
    },
    {
      path: "returnVisitCalendar",
      component: (resolve) => require(["@/views/doctor/patient/com/returnVisitCalendar"], resolve),
      name: "returnVisitCalendar",
      meta: { title: "回访日历", activeMenu: "/doctor/doctorManage" },
      hidden: true,
    },
    {
      path: "addPersonIndex",
      component: (resolve) => require(["@/views/doctor/patient/com/addPerson/index"], resolve),
      name: "addPersonIndex",
      meta: { title: "添加/编辑患者", activeMenu: "/doctor/doctorManage" },
      hidden: true,
    },
    {

      path: "TMDForm",
      component: (resolve) => require(["@/views/doctor/patient/com/addPerson/TMDForm"], resolve),
      name: "TMDForm",
      meta: { title: "调查问卷", activeMenu: "/doctor/doctorManage" },
      hidden: true,
    },
    {
      path: "generatingCases",
      component: (resolve) => require(["@/views/doctor/patient/com/addPerson/generatingCases"], resolve),
      name: "generatingCases",
      meta: { title: "生成病例", activeMenu: "/doctor/doctorManage" },
      hidden: true,
    },

  ],
};

export default doctorManageRouter;
